﻿using System.Data.Linq;
using System.Configuration;
using PM.Entities;

namespace PM.BusinessLayer
{
    static public class Infrastructure
    {
        public static DataContext DataContext
        {
            get
            {
                return new PMEntitiesDataContext(
                    ConfigurationManager.ConnectionStrings["PMConnectionString"].ToString());
            }
        }
    }
}
